IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[cms_sp_GetMimeTypeForContentType]') AND type in (N'P', N'PC'))
	DROP PROCEDURE [dbo].[cms_sp_GetMimeTypeForContentType]
GO
create procedure [dbo].[cms_sp_GetMimeTypeForContentType]
(
@ContentType nvarchar(250)
)
as
select 
	MimeTypeId as Id,
	MimeTypeName,
	ContentType,
	IsImage
from [dbo].[MimeTypes]
where ContentType = @ContentType


GO

